import Vue from'vue'
import Vuex from 'vuex'
import user from './modules/user'
import permission from './modules/permission'
import getters from './getters'
import setting from './modules/setting'

Vue.use(Vuex)
//构建store
const store = new Vuex.Store({
  modules: {
    user, //用户模块
	permission, //菜单权限模块
	setting //全局设置模块
  },
  getters
})
//暴露store
export default store